package cn.shyouchi.wuguanjia.android.api.notice;

import java.util.Map;

import cn.shyouchi.wuguanjia.android.model.BaseRequestResult;
import cn.shyouchi.wuguanjia.android.model.BaseResult;
import cn.shyouchi.wuguanjia.android.ui.home.security.thread.me.NoticeState;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;
import rx.Observable;

/**
 * Created by Eenie on 2017/3/13 at 16:49
 * Email: 472279981@qq.com
 * Des:
 */

public interface NoticeService {


    @GET("remind/{path}")
    Observable<BaseRequestResult<NoticeState>> getNoticeSignState(@Path("path") String path);



    @GET("remind/{path}")
    Observable<BaseResult> ToggleNoticeState(@Path("path") String path);


    @FormUrlEncoded
    @POST("remind/{path}")
    Observable<BaseResult> saveNoticeState(@Path("path") String path, @FieldMap Map<String, Object> params);



}
